package com.dz.Incubator.service;

import com.dz.Incubator.config.Pagination;
import com.dz.Incubator.entity.BusinessSchoolEntity;

import java.util.List;

public interface BusinessSchoolService {

    /**
     * 保存当前对象,并返回主键ID
     * @param businessSchoolEntity BusinessSchoolEntity
     * @return BusinessSchoolEntity
     */
    BusinessSchoolEntity insert(BusinessSchoolEntity businessSchoolEntity);

    /**
     * 修改当前对象
     * @return BusinessSchoolEntity
     */
    BusinessSchoolEntity update(BusinessSchoolEntity businessSchoolEntity);

    /**
     * 根据主键Id删除数据
     * @param id 主键
     * @return 成功失败  1 为成功  0 为失败
     */
    Long delete(Long id);

    /**
     * 根据Id获取当前对象
     * @param id 主键ID
     * @return BusinessSchoolEntity
     */
    BusinessSchoolEntity get(Long id);
    
    /**
     * 根据Ids集合获取当前对象
     * @param ids 主键ID集合
     * @return List<BusinessSchoolEntity>
     */
    List<BusinessSchoolEntity> find(Long[] ids);
    
     /**
     * 获取当前对象全部列表
     * @return List<BusinessSchoolEntity>
     */
    List<BusinessSchoolEntity> findAll();

    /**
     * 分页获取BusinessSchoolEntity列表
     * @param pagination Pagination<BusinessSchoolEntity>
     * @return Pagination<BusinessSchoolEntity> 
     */
    Pagination findByPagination(Pagination pagination);
    
    /**
     * 根据列表集合添加当前对象
     * @return List<BusinessSchoolEntity>
     */
    List<BusinessSchoolEntity> insertBatch(List<BusinessSchoolEntity> list);
    
    /**
     * 根据列表集合获修改前对象
     * @return List<BusinessSchoolEntity>
     */
    List<BusinessSchoolEntity> updateBatch(List<BusinessSchoolEntity> list);
    
    /**
     * 根据Ids集合批量删除当前对象
     * @param ids 主键ID集合
     * @return List<Long>
     */
    List<Long> deleteBatch(Long[] ids);

}